package com.example.alibabanacosdiscoveryclient.service.impl;

import com.example.alibabanacosdiscoveryclient.mapper.AccountMapper;
import com.example.alibabanacosdiscoveryclient.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author:guoq
 * @date:2024/11/21
 * @descripion:
 */
@Service
public class AccountServiceImpl implements AccountService {
    @Autowired
    AccountMapper accountMapper;
    @Override
    public int debit(String userId, int money) {
      return  accountMapper.debit(userId,money);
    }
}
